/**
 * Created by Administrator on 2016/6/14.
 */
//登录的提交
$('form').submit(function(e){
    e.preventDefault();
    var data = $(this).serialize();
    $.post('/signin',data,function(data){
        if(data.code == 'success'){
            location.href = '/';
        }
        else {
            $('.modal-body').text(data.message);
            $('#myModal').modal('show');
        }
    })
})
